#ifndef _COLLISION_SYSTEM_H
#define _COLLISION_SYSTEM_H

#include "Octree.h"
#include "Object.h"

class Object; // forward declaration

class CollisionSystem {
private:
	// The space partitioning root
	Octree* octree;
	set<Triangle*> triangle;
public:
	CollisionSystem(const AABB& aabb);
	void addObject(Object* o);
	void removeObject(Object* o);
	void update(Triangle* t);
	void handleCollisions();
	~CollisionSystem();
};

#endif /* _COLLISION_SYSTEM_H */
